package org.freeocs;

/**
 * FreeOCS的全局常量定义
 * 
 * @author chirs
 */
public class Globals {
	public final static String DEFAULT_CONTENT_TYPE = "text/html;charset=UTF-8";

	public final static String LOCAL_PATH_PREFIX = "file://";

	public final static String RANDOM_LOGIN_KEY = "RANDOM_LOGIN_KEY";

	public final static String PARAM_SID = "sid";

	public final static String MAIL_QUEUE = "MAIL_QUEUE";

	public final static String USER_AGENT = "user-agent";

	public final static String SESSION_ID_KEY_IN_COOKIE = "FREEOCS_SESSION_ID";

	public final static String ALBUM_VERIFY_KEY = "ALBUM_";

	// header 常量定义

	public final static String ENC_UTF_8 = "UTF-8";

	public final static String ENC_8859_1 = "8859_1";

	public final static String ENCODING_PREFIX = "encoding:";

	public final static String NOCACHE_PREFIX = "no-cache:";

	public final static boolean NOCACHE_DEFAULT = true;

	/**
	 * 运行过程中webapp所在的路径 由FreeOCSFilter进行赋值
	 * 
	 * @see org.freeocs.dispatcher.FOCSFilter#init()
	 */
	public static String WEBAPP_PATH;
}
